If the passed-in store locations for the baselines are NULL anyway, we
don't need to check the reported baselines for correctness.
gint *minimum_baseline,
gint *natural_baseline)
{
+ const gboolean baselines_requested = (minimum_baseline != NULL || natural_baseline != NULL);
SizeRequestCache *cache;
gint min_size = 0;
gint nat_size = 0;
nat_size = adjusted_natural;
}
- if (min_baseline != -1 || nat_baseline != -1)
+ if (baselines_requested && (min_baseline != -1 || nat_baseline != -1))
{
if (orientation == GTK_ORIENTATION_HORIZONTAL)
{